<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单计算器</title>
    <!--  外联式引用js文件 -->
    <script src="jjcc.js"></script>
</head>

<body>

    <h1> 简单计算器 </h1>
    <input type="number" id="num1" placeholder="请输入第一个数">
    <input type="number" id="num2" placeholder="请输入第一个数">
    <select id="operation">
        <option value="add">+</option>
        <option value="subtract">-</option>
        <option value="multiply">*</option>
        <option value="divide">/</option>
        <option value="divideddd">log</option>
    </select>
    <button onclick="calculate()">计算</button>
    <p>结果： <span id="result">?</span></p>

</body>

</html>